<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>shijian</title>
		<script type="text/javascript">
			function dis(){
				var day=new Date();
				var hh=day.getHours();
				var mm=day.getMinutes();
				var ss=day.getSeconds();
				var yy=day.getFullYear();
				var mh=day.getMonth();
				var dd=day.getDate();
				var dy=day.getDay();
				var x="";
				if (hh>12) {
					x="pm";
				} else{
					x="am";
				}
				document.getElementById("myclock").innerHTMLL="今天日期："+yy+"年"+(mh+1)+"月"+dy+"日"+"<br/>现在时间："+hh+"时"+mm+"分"+ss+"秒<br/>"+x+"欢迎来贵美！";
			}
			var myTime=setInterval("dis()",1000);
		</script>
	</head>
	<body>
		<div id="myclock">
			
		</div>
		
	</body>
</html>
